package com.enqualcomm.kids.network;

import com.android.volley.AuthFailureError;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by yinzhiqun on 2015/10/13.
 *
 */
public class BaiduApiRequest extends StringRequest {

    public BaiduApiRequest(String url, Response.Listener<String> listener, Response.ErrorListener errorListener) {
        super(Method.GET, url, listener, errorListener);
    }

    @Override
    public Map<String, String> getHeaders() throws AuthFailureError {
        HashMap<String, String> map = new HashMap<>();
        map.put("apikey","1a98c4f7e9c2b2cdf4c843afbe59e9ba");
        return map;
    }
}
